﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//商贩
namespace Demo1
{
    enum PedlarNPC 
    {
        /// <summary>
        /// 武器NPC
        /// </summary>
        WeaponNPC,
        /// <summary>
        /// 材料NPC
        /// </summary>
        MaterialsNPC,
        /// <summary>
        /// 食物NPC
        /// </summary>
        FoodNPC
    }
    class Pedlar : NPC
    {
        private string must;
        private PedlarNPC Ttype;
        public Pedlar(string name, NPCtype type, PedlarNPC Ttype, string must) : base(name, type)
        {
            this.Ttype = Ttype;
            this.must = must;
        }
        public Pedlar() { }

        public override void SpeakA()
        {
            Console.WriteLine("NPC{0}说：我这里有{1}一把，想不想要", this.name, this.must);
        }

        public override void SpeakB()
        {
            Console.WriteLine("NPC{0}说：我这里有{1}，是打造极品神器的必备材料", this.name, this.must);
        }

        public override void SpeakC()
        {
            Console.WriteLine("NPC{0}说：快饿死了吧，求求我，给你{1}吃吃", this.name, this.must);
        }
    }
}
